//
//  BXError.h
//  IBoXiao_ios
//
//  Created by 于龙 on 14-4-22.
//  Copyright (c) 2014年 ___boxiao___. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FYError : NSObject

@property (nonatomic,assign) NSInteger errorCode;
@property (nonatomic,strong) NSString *errorMessage;

+ (FYError *)errorWithCode:(NSInteger)code Message:(NSString *)msg;
+ (FYError *)errorWithCode:(NSInteger)code;
+ (FYError *)errorWithOperation:(NSURLSessionDataTask*)operation;
+ (FYError *)errorWithOperation:(NSURLSessionDataTask*)operation Message:(NSString *)msg;
@end
